package org.zfes.snowier.cloud.zbss.widget.act;

import java.util.List;
import java.util.Random;

import com.google.common.collect.Lists;

public class BizUtil {
	public static final String str="3456789abcdefghjkmnpqrstuvwxy";
	public static final int len=str.length();
	
	static final Random random=new Random();
	
	public static String randomChars(int length){
		StringBuffer sb=new StringBuffer();
		for(int i=0;i<length;i++){
		   int number=random.nextInt(len);
		   sb.append(str.charAt(number));
		}
		return sb.toString();
	}
	
	public static List<String> randomChars(int count,int charsLen){
		List<String> resList=Lists.newArrayList();
		for(int i=0;i<count;i++) {
			resList.add(randomChars(charsLen));
		}
		return resList;
	}
	
	public static void main(String[] args) {
		List<String> resList=randomChars(10000,6);
		resList.forEach(val->{
			System.out.println(val);
		});
		
	}
}
